package com.medata.repository;

import com.medata.dataObject.LogSearch;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.sql.Timestamp;

public interface LogSearchRepository extends JpaRepository<LogSearch,Integer> {

    Page<LogSearch> findByLogTimeBetweenAndActionId(Timestamp startTime, Timestamp endTime,Integer actionid,Pageable pageable);

    void deleteByLogTimeBetweenAndActionId(Timestamp startTime, Timestamp endTime, Integer actionid);



}
